// 是否开启菜单水平折叠效果
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useCollapseStore = defineStore('collapse', () => {
  const isCollapse = ref<boolean>(false)

  // 2. 定义获取接口数据的action函数
  const setCollapse = (data: boolean) => {
    isCollapse.value = data
  }

  return {
    isCollapse,
    setCollapse
  }
})